﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Teacher:Person
    {
        //职称（Title）、工资号（Wageno）
        private string title;
        private int wageno;

        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public int Wageno
        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
        public void Hello()
        {
            base.Hello();
            Console.WriteLine("职称：{0}，工资号：{1}",this.title,this.wageno);
        }
        public Teacher(string title,int wageno)
        {
            this.title = title;
            this.wageno = wageno;
        }
    }
}
